(global.webpackJsonp = global.webpackJsonp || []).push([ [ "pages/work/repair/detail" ], {
    "04ae": function(t, e, n) {
        n.r(e);
        var r, i = n("086f"), o = n("74cd");
        for (r in o) "default" !== r && function(t) {
            n.d(e, t, function() {
                return o[t];
            });
        }(r);
        n("86a1");
        var a = n("f0c5"), i = Object(a.a)(o.default, i.b, i.c, !1, null, null, null, !1, i.a, void 0);
        e.default = i.exports;
    },
    "086f": function(t, e, n) {
        n.d(e, "b", function() {
            return i;
        }), n.d(e, "c", function() {
            return o;
        }), n.d(e, "a", function() {
            return r;
        });
        var r = {
            wkLoginModal: function() {
                return n.e("components/wk-login-modal/index").then(n.bind(null, "978a"));
            }
        }, i = function() {
            this.$createElement;
            this._self._c;
        }, o = [];
    },
    "0c73": function(t, e, o) {
        (function(n) {
            function r(e, t) {
                var n, r = Object.keys(e);
                return Object.getOwnPropertySymbols && (n = Object.getOwnPropertySymbols(e), t && (n = n.filter(function(t) {
                    return Object.getOwnPropertyDescriptor(e, t).enumerable;
                })), r.push.apply(r, n)), r;
            }
            function i(t, e, n) {
                return e in t ? Object.defineProperty(t, e, {
                    value: n,
                    enumerable: !0,
                    configurable: !0,
                    writable: !0
                }) : t[e] = n, t;
            }
            Object.defineProperty(e, "__esModule", {
                value: !0
            });
            var t = {
                components: {},
                data: function() {
                    var t = {
                        house: {},
                        t_user: {},
                        template: {},
                        bill: {},
                        contract: {}
                    };
                    return i(t, "house", {}), i(t, "repair", {
                        id: 0,
                        album: []
                    }), t;
                },
                computed: function(e) {
                    for (var t = 1; t < arguments.length; t++) {
                        var n = null != arguments[t] ? arguments[t] : {};
                        t % 2 ? r(Object(n), !0).forEach(function(t) {
                            i(e, t, n[t]);
                        }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(n)) : r(Object(n)).forEach(function(t) {
                            Object.defineProperty(e, t, Object.getOwnPropertyDescriptor(n, t));
                        });
                    }
                    return e;
                }({}, (e.default = void 0, o("26cb").mapState)({
                    isLogin: function(t) {
                        return t.user.isLogin;
                    }
                })),
                onLoad: function() {
                    var t = this.$Route.query;
                    this.repair.id = t.id, this.init();
                },
                onReady: function() {},
                methods: {
                    init: function() {
                        var e = this;
                        this.$api("work.repair_detail", {
                            id: e.repair.id
                        }).then(function(t) {
                            0 == t.errno && (t = t.data.repair, e.repair = t);
                        });
                    },
                    makeCall: function() {
                        var t = this.repair.mobile;
                        n.makePhoneCall({
                            phoneNumber: t
                        });
                    },
                    loginConfirm: function(t) {
                        this.init();
                    },
                    call: function() {
                        var t = this.contract.f_tel;
                        n.makePhoneCall({
                            phoneNumber: t
                        });
                    },
                    pre_imgs: function(t) {
                        var e = this.repair.album;
                        n.previewImage({
                            urls: e,
                            current: t
                        });
                    },
                    repaire_confirm: function() {
                        var e = this;
                        n.showModal({
                            title: "提示",
                            content: "确认受理？",
                            success: function(t) {
                                t.confirm ? e.$api("store.repair_edit", {
                                    id: e.repair.id,
                                    status: 2
                                }, "post").then(function(t) {
                                    0 === t.errno ? (0 == t.data.code && e.$tools.toast("操作成功"), e.init()) : e.$tools.toast(t.msg);
                                }) : t.cancel;
                            }
                        });
                    },
                    repaire_ok: function() {
                        var e = this;
                        e.$api("work.repair_edit", {
                            id: e.repair.id,
                            status: 6
                        }, "post").then(function(t) {
                            0 === t.errno ? (0 == t.data.code && e.$tools.toast("操作成功"), e.init()) : e.$tools.toast(t.msg);
                        });
                    },
                    repaire_cancle: function() {
                        var e = this;
                        e.$api("work.repair_edit", {
                            id: e.repair.id,
                            status: 4
                        }, "post").then(function(t) {
                            0 === t.errno ? (0 == t.data.code && e.$tools.toast("操作成功"), e.init()) : e.$tools.toast(t.msg);
                        });
                    }
                }
            };
            e.default = t;
        }).call(this, o("543d").default);
    },
    "74cd": function(t, e, n) {
        n.r(e);
        var r, i = n("0c73"), o = n.n(i);
        for (r in i) "default" !== r && function(t) {
            n.d(e, t, function() {
                return i[t];
            });
        }(r);
        e.default = o.a;
    },
    "86a1": function(t, e, n) {
        var r = n("96f8");
        n.n(r).a;
    },
    "96f8": function(t, e, n) {},
    da5c: function(t, e, r) {
        (function(t) {
            r("767a"), n(r("66fd"));
            var e = n(r("04ae"));
            function n(t) {
                return t && t.__esModule ? t : {
                    default: t
                };
            }
            wx.__webpack_require_UNI_MP_PLUGIN__ = r, t(e.default);
        }).call(this, r("543d").createPage);
    }
}, [ [ "da5c", "common/runtime", "common/vendor" ] ] ]);